package com.zhentao.controller;

import com.zhentao.pojo.CarCirclePost;
import com.zhentao.pojo.CarouselBanner;
import com.zhentao.service.impl.CarCirclePostServiceImpl;
import com.zhentao.service.impl.CarouselBannerServiceImpl;
import com.zhentao.service.impl.TenantServiceImpl;
import com.zhentao.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Discover")
public class DiscoverController {
    @Autowired
    private CarCirclePostServiceImpl carCirclePostService;
    @Autowired
    private TenantServiceImpl tenantService;
    @RequestMapping("/getCarCirclePost")
    public Result getCarouselBanner(){
        List<CarCirclePost> list = carCirclePostService.list();
        return Result.OK(list);
    }
}
